package cn.niit.pm.entity;

import io.swagger.annotations.ApiModel;
import lombok.*;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 实体类，与tb_leave_from表对应
 *  请假单编号
 *  员工编号
 * 请假类型：1-事假 2-病假 3-工伤假 4-婚假 5-产假6-丧假
 * 请假的开始时间
 * 请假的结束时间
 * 请假的原因
 * 添加数据的创建时间
 * 审批状态：process-正在审批 approved-审批通过 refused-审批被驳回
 * @author Yupengfei
 */

@EqualsAndHashCode(callSuper = true)
@Data
@Alias("LeaveForm")
@ApiModel("请假实体类")
public class LeaveForm  extends BaseEntity{

    private Long fromId;
    private Long employeeId;
    private  Integer fromType;
    private Date startTime;
    private  Date endTime;
    private  String reason;
    private  Date createTime;
    private  String state;
    private String employeeName;
    private String departmentName;
    private String postName;


}
